package co.edu.unal.geditor.controller.action.edit;

import java.awt.Font;
import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import co.edu.unal.geditor.controller.App;
import co.edu.unal.geditor.view.tools.FontDialog;

public class ChangeFontAction extends AbstractAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public void actionPerformed(ActionEvent e) {
		FontDialog fd = new FontDialog();
		Font font = fd.showDialog();
		if (font!=null){App.getInstance().getDrawing().setFont(font);}
	}
	public ChangeFontAction() {
		// auto-boxing Java feature
		
		super("Change Font");
	}

}
